package com.ks.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author LDK
 * @since 2022-07-07
 */
@Getter
@Setter
@TableName("biz_product")
@ApiModel(value = "Product对象", description = "")
public class Product implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField("id")
    private Long id;

    @ApiModelProperty("商品编号")
    @TableField("p_num")
    private String pNum;

    @ApiModelProperty("商品名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("图片")
    @TableField("image_url")
    private String imageUrl;

    @ApiModelProperty("规格型号")
    @TableField("model")
    private String model;

    @ApiModelProperty("计算单位")
    @TableField("unit")
    private String unit;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("排序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField("modified_time")
    private LocalDateTime modifiedTime;

    @ApiModelProperty("1级分类")
    @TableField("one_category_id")
    private Long oneCategoryId;

    @ApiModelProperty("2级分类")
    @TableField("two_category_id")
    private Long twoCategoryId;

    @ApiModelProperty("3级分类")
    @TableField("three_category_id")
    private Long threeCategoryId;

    @ApiModelProperty("是否删除:1物资正常,0:物资回收,2:物资审核中")
    @TableField("status")
    private Integer status;


}
